package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-09-30
 */
@TableName("order_transactions")
public class OrderTransactions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "transactions_id", type = IdType.AUTO)
    private Long transactionsId;

    private Long orderId;

    private String transactionsNo;

    private LocalDateTime createdAt;

    private LocalDateTime completedAt;

    private BigDecimal amount;

    /**
     * 支付/退款/补差价/违约扣款
     */
    private String completedType;

    /**
     * 已支付/未完成
     */
    private String transactionsStatus;

    public Long getTransactionsId() {
        return transactionsId;
    }

    public void setTransactionsId(Long transactionsId) {
        this.transactionsId = transactionsId;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public String getTransactionsNo() {
        return transactionsNo;
    }

    public void setTransactionsNo(String transactionsNo) {
        this.transactionsNo = transactionsNo;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public LocalDateTime getCompletedAt() {
        return completedAt;
    }

    public void setCompletedAt(LocalDateTime completedAt) {
        this.completedAt = completedAt;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public String getCompletedType() {
        return completedType;
    }

    public void setCompletedType(String completedType) {
        this.completedType = completedType;
    }
    public String getTransactionsStatus() {
        return transactionsStatus;
    }

    public void setTransactionsStatus(String transactionsStatus) {
        this.transactionsStatus = transactionsStatus;
    }

    @Override
    public String toString() {
        return "OrderTransactions{" +
            "transactionsId=" + transactionsId +
            ", orderId=" + orderId +
            ", transactionsNo=" + transactionsNo +
            ", createdAt=" + createdAt +
            ", completedAt=" + completedAt +
            ", amount=" + amount +
            ", completedType=" + completedType +
            ", transactionsStatus=" + transactionsStatus +
        "}";
    }
}
